#coding=utf-8
import os
import sys

def is_chinese(char):
    """
    检查整个字符串是否包含中文
    :param string: 需要检查的字符串
    :return: bool
    """
    return u'\u4e00' <= char <= u'\u9fff'

def is_english(char):
    return u'\u0030' <= char <= u'\u0039' or u'\u0041' <= char <= u'\u005a' 

def find_first_CHINESE_CHAR(str):
    index = 0
    for i in str:
        if is_chinese(i):
            return index
        index += 1
    return -1
    
def find_english_char_after_CHINESE(str):
    index = 0
    for i in str:
        if is_english(i):
            return index
        index += 1
    return -1